var express = require('express');
var router = express.Router();


var setShouye = require('./controller/shouyeCon')
var setCost = require('./controller/costmangeCon')
var setlivePeo = require('./controller/unilivepeoCon')
/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });

router.get('/getHotKe', setShouye.setHotKe)
router.get('/getHotDoc', setShouye.setHotDoc)
router.get('/getHotGua', setShouye.setHotGua)
router.get('/getCost', setCost.getCostmange)
router.get('/selectCostmsg', setCost.selectCostMsg)
router.get('/selectAllmsg', setCost.getAllmsg)
// uni
router.get('/getLivePeo', setlivePeo.getlivePeo)
router.get('/getBindNumPeos', setlivePeo.getBindNumPeo)
router.get('/getBindPeoMsgs', setlivePeo.getBindNumPeoMsg)


const table = require('./controller/tableController')

/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });


/**,
 * @swagger
 * /api/addExam:
 *    post:
 *      tags:
 *      - 测试
 *      summary: 提交考试答案
 *      produces:
 *      - application/json
 *      parameters:
 *      - name: name
 *        in: query
 *        description: 姓名
 *        required: false
 *        type: integer
 *        maximum:
 *        minimum: 1
 *        format:
 *      - name: phone
 *        in: query
 *        description: 电话
 *        required: false
 *        type: integer
 *        maximum:
 *        minimum: 1
 *        format:
 *      responses:
 *        200:
 *          description: successful operation
 *          schema:
 *            ref: #/definitions/Order
 *        400:
 *          description: Invalid ID supplied
 *        404:
 *          description: Order not found
 * */


router.get('/setTable', table.setTable);

module.exports = router;
